import React from 'react'
import ReactDOM from 'react-dom'
// import appleStore from './mobx/appleStore';
// import AppleBasket from './components/appleBasket';
// import { autorun} from 'mobx';
import { Provider } from 'mobx-react'
import App from './App'
import AppleStore from './store/apple'
const apple = new AppleStore()
// const store = new appleStore();

/** acturun测试*/
// autorun(()=> {
//     if (store.isPicking) {
//         console.log('又在采摘新苹果了');
//     }
// });

ReactDOM.render(
  <Provider apple={apple}>
    <App/>
  </Provider>,
  document.getElementById('root')
)

